/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Vista;

/**
 *
 * @author Flor
 */
public class VistaInicial extends javax.swing.JFrame {
    private static VistaInicial instancia;
    public static VistaInicial darInstancia()
    {
        if(instancia==null)
        {
            instancia=new VistaInicial();
        }
        return instancia;
    }

    /**
     * Creates new form VistaInicial
     */
    private VistaInicial() {
        initComponents();
    }
//sdsjkdsjkdhsd
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblNombre = new javax.swing.JLabel();
        txtNombre = new javax.swing.JTextField();
        btnAceptar = new javax.swing.JButton();
        lblDif = new javax.swing.JLabel();
        cBoxDif = new javax.swing.JComboBox();
        lblWelcome = new javax.swing.JLabel();
        lblError = new javax.swing.JLabel();
        lblFondo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblNombre.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblNombre.setForeground(new java.awt.Color(255, 255, 255));
        lblNombre.setText("Ingrese su nombre");
        getContentPane().add(lblNombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 220, -1, 30));

        txtNombre.setBackground(new java.awt.Color(204, 204, 204));
        txtNombre.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        txtNombre.setMaximumSize(new java.awt.Dimension(4, 6));
        getContentPane().add(txtNombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 220, 70, 20));

        btnAceptar.setText("Aceptar");
        btnAceptar.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.lightGray, java.awt.Color.lightGray, java.awt.Color.lightGray, java.awt.Color.cyan));
        getContentPane().add(btnAceptar, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 330, 90, 30));

        lblDif.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblDif.setForeground(new java.awt.Color(255, 255, 255));
        lblDif.setText("Nivel de Dificultad");
        getContentPane().add(lblDif, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 260, -1, -1));

        cBoxDif.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccionar", "Facil", "Intermedio", "Dificil" }));
        getContentPane().add(cBoxDif, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 260, -1, -1));

        lblWelcome.setFont(new java.awt.Font("Arial Black", 1, 36)); // NOI18N
        lblWelcome.setForeground(new java.awt.Color(255, 255, 255));
        lblWelcome.setText("SuperMerk2 Poker's");
        lblWelcome.setToolTipText("");
        lblWelcome.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));
        getContentPane().add(lblWelcome, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 90, -1, -1));

        lblError.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        lblError.setForeground(new java.awt.Color(255, 0, 0));
        getContentPane().add(lblError, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 300, -1, -1));

        lblFondo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Img/black-on.jpg"))); // NOI18N
        getContentPane().add(lblFondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 750, 480));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VistaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VistaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VistaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VistaInicial.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new VistaInicial().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton btnAceptar;
    public javax.swing.JComboBox cBoxDif;
    public javax.swing.JLabel lblDif;
    public javax.swing.JLabel lblError;
    private javax.swing.JLabel lblFondo;
    public javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblWelcome;
    public javax.swing.JTextField txtNombre;
    // End of variables declaration//GEN-END:variables
}
